package com.dcd.service;

import com.dcd.pojo.Sales;
import com.dcd.service.impl.SalesServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Component
@FeignClient(name = "donchedi-provider9091", contextId = "sales", fallback = SalesServiceImpl.class)
public interface SalesService {
    /**
     * 查询近期前五个的日期
     * @return
     */
    @RequestMapping("/timeAll")
    public List<Sales> timeAll();
    /**
     * 支付宝支付成功修改销量
     * @param sales_car_series_fk_id   车系id
     * @return
     */
    @RequestMapping("/paySales")
    public int paySales(@RequestParam Integer sales_car_series_fk_id);

}
